<html>
    <head>

    </head>
    <body>
        <script>
            function foo(e){
                console.log(e);
                console.log(e.button);
                console.log("页面中坐标:"+e.clientX+","+e.clientY);
                console.log("屏幕中坐标:"+e.screenX+","+e.screenY);
            }

            document.onmousedown=foo;
        </script>
    </body>
</html>